"""
作者：20183122陈介
创作时间：2020-3-11
程序功能：信用贷款客户风险评估
TIPS:python程序设计课程第二次课堂实践
"""


conti = "yes"
while (conti == "yes") or (conti == "YES"):
    choose = input("借贷人是否有房产？")
    if (choose == "yes") or (choose == "YES"):
        print("该借贷人有偿还能力")
    else:
        print("该借贷人可能没有偿还能力")
        answer = input("请问您是否继续判断(继续：yes 中断：no)：")
        if (answer == "yes") or (answer == "YES"):
            choose = input("借贷人是否有车")
            if (choose == "yes") or (choose == "YES"):
                print("该借贷人有偿还能力")
            else:
                print("该借贷人可能没有偿还能力")
                answer = input("请问您是否继续判断(继续：yes 中断：no)：")
                if (answer == "yes") or (answer == "YES"):
                    choose = input("借贷人是否已婚")
                    if (choose == "yes") or (choose == "YES"):
                        print("该借贷人有偿还能力")
                    else:
                        print("该借贷人可能没有偿还能力")
                        answer = input("请问您是否继续判断(继续：yes 中断：no)：")
                        if (answer == "yes") or (answer == "YES"):
                            income = int(input("请输入您的预期收入判断指标"))
                            choose = input("该借贷人的收入是否大于"+str(income)+"?")
                            if (choose == "yes") or (choose == "YES"):
                                print("该借贷人有偿还能力")
                            else:
                                print("该借贷人可能没有偿还能力")
    print("当前的借贷人资格审核完毕>_<")
    conti = input("\n请问是否要继续判断下一个人的借贷资格？")